home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / ToolUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  2.2 KB  |  103 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ToolUtils.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __TOOLUTILS__
  13. #define __TOOLUTILS__
  14.  
  15. #ifndef __QUICKDRAW__
  16. #include <Quickdraw.h>
  17. #endif
  18.  
  19. #ifndef __TEXTUTILS__
  20. #include <TextUtils.h>
  21. #endif
  22.  
  23. enum {
  24.  
  25.  sysPatListID = 0,
  26.  iBeamCursor = 1,
  27.  crossCursor = 2,
  28.  plusCursor = 3,
  29.  watchCursor = 4
  30. };
  31.  
  32. struct Int64Bit {
  33.  long hiLong;
  34.  long loLong;
  35. };
  36.  
  37. typedef struct Int64Bit Int64Bit;
  38.  
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. pascal Fixed FixRatio(short numer,short denom)
  44.  = 0xA869; 
  45. pascal Fixed FixMul(Fixed a,Fixed b)
  46.  = 0xA868; 
  47. pascal short FixRound(Fixed x)
  48.  = 0xA86C; 
  49. pascal void PackBits(Ptr *srcPtr,Ptr *dstPtr,short srcBytes)
  50.  = 0xA8CF; 
  51. pascal void UnpackBits(Ptr *srcPtr,Ptr *dstPtr,short dstBytes)
  52.  = 0xA8D0; 
  53. pascal Boolean BitTst(const void *bytePtr,long bitNum)
  54.  = 0xA85D; 
  55. pascal void BitSet(void *bytePtr,long bitNum)
  56.  = 0xA85E; 
  57. pascal void BitClr(void *bytePtr,long bitNum)
  58.  = 0xA85F; 
  59. pascal long BitAnd(long value1,long value2)
  60.  = 0xA858; 
  61. pascal long BitOr(long value1,long value2)
  62.  = 0xA85B; 
  63. pascal long BitXor(long value1,long value2)
  64.  = 0xA859; 
  65. pascal long BitNot(long value)
  66.  = 0xA85A; 
  67. pascal long BitShift(long value,short count)
  68.  = 0xA85C; 
  69. pascal short HiWord(long x)
  70.  = 0xA86A; 
  71. pascal short LoWord(long x)
  72.  = 0xA86B; 
  73. pascal void LongMul(long a,long b,Int64Bit *result)
  74.  = 0xA867; 
  75. pascal Handle GetIcon(short iconID)
  76.  = 0xA9BB; 
  77. pascal void PlotIcon(const Rect *theRect,Handle theIcon)
  78.  = 0xA94B; 
  79. pascal PatHandle GetPattern(short patternID)
  80.  = 0xA9B8; 
  81. pascal CursHandle GetCursor(short cursorID)
  82.  = 0xA9B9; 
  83. pascal PicHandle GetPicture(short pictureID)
  84.  = 0xA9BC; 
  85. pascal Fixed SlopeFromAngle(short angle)
  86.  = 0xA8BC; 
  87. pascal short AngleFromSlope(Fixed slope)
  88.  = 0xA8C4; 
  89. pascal long DeltaPoint(Point ptA,Point ptB)
  90.  = 0xA94F; 
  91. pascal void ShieldCursor(const Rect *shieldRect,Point offsetPt)
  92.  = 0xA855; 
  93. pascal void ScreenRes(short *scrnHRes,short *scrnVRes)
  94.  = {0x225F,0x32B8,0x0102,0x225F,0x32B8,0x0104}; 
  95. pascal void GetIndPattern(Pattern thePat,short patternListID,short index); 
  96. void shieldcursor(const Rect *shieldRect,Point *offsetPt); 
  97. long deltapoint(Point *ptA,Point *ptB); 
  98. #ifdef __cplusplus
  99. }
  100. #endif
  101.  
  102. #endif
  103.